/*
 *  Constants.h
 *  StrategyInspector
 *
 *  Created by jiro on 12/07/21.
 *  Copyright 2012 jiro music. All rights reserved.
 *
 */

class CurrencyExchange
{
public:
	enum Type
	{
		Type_USDJPY,	Type_GBPJPY,	Type_AUDJPY,	Type_CADJPY,
		Type_CHFJPY,	Type_NZDJPY,	Type_ZARJPY,	Type_EURJPY,
		Type_EURUSD,	Type_GBPUSD,	Type_AUDUSD,
		Type_EURCHF,	Type_GBPCHF,	Type_USDCHF,
		Type_Count
	};

	static NSString* toString( Type type )
	{
		switch ( type )
		{
		case Type_USDJPY:
			return @"USD/JPY";
		case Type_GBPJPY:
			return @"GBP/JPY";
		case Type_AUDJPY:
			return @"AUD/JPY";
		case Type_CADJPY:
			return @"CAD/JPY";
		case Type_CHFJPY:
			return @"CHF/JPY";
		case Type_NZDJPY:
			return @"NZD/JPY";
		case Type_ZARJPY:
			return @"ZAR/JPY";
		case Type_EURJPY:
			return @"EUR/JPY";
		case Type_EURUSD:
			return @"EUR/USD";
		case Type_GBPUSD:
			return @"GBP/USD";
		case Type_AUDUSD:
			return @"AUD/USD";
		case Type_EURCHF:
			return @"EUR/CHF";
		case Type_GBPCHF:
			return @"GBP/CHF";
		case Type_USDCHF:
			return @"USD/CHF";
		default:
			return nil;
		}
	};

};
